ga.view.streaming.showroom
Class CameraSettings

java.lang.Object
  extended by ga.view.streaming.showroom.CameraSettings

public class CameraSettings
extends java.lang.Object

Since:
12.08.2012
Author:
Stephan Dreyer

Nested Class Summary
static class CameraSettings.Type
          Types of perspectives.
 
Field Summary
private  float aspect
           
private  float fov
           
private  float frustumFar
           
private  float frustumNear
           
private  com.jme3.math.Vector3f initialLocation
           
private  boolean isIsometric
           
private  com.jme3.math.Vector3f lookAtPoint
           
private  float maxDistance
           
private  float maxVRotation
           
private  float minDistance
           
private  float minVRotation
           
 
Constructor Summary
CameraSettings(com.jme3.math.Vector3f initialLocation, com.jme3.math.Vector3f lookAtPoint, float minVRotation, float maxVRotation, float minDistance, float maxDistance, float aspect, float fov, float frustumNear, float frustumFar, boolean isIsometric)
          Instantiates a new camera settings.
 
Method Summary
 void configureCamera(com.jme3.renderer.Camera cam)
          Configures a camera.
static CameraSettings getInRoomSettings(ShowRoom room, com.jme3.system.AppSettings settings)
          Gets the in room perspective settings for a show room.
static CameraSettings getIsometricSettings(ShowRoom room, com.jme3.system.AppSettings settings)
          Gets the isometric perspective settings for a show room.
 com.jme3.math.Vector3f getLookAtPoint()
          Gets the look at point.
 float getMaxDistance()
          Gets the maximum distance.
 float getMaxVRotation()
          Gets the max vertical rotation.
 float getMinDistance()
          Gets the minimum distance.
 float getMinVRotation()
          Gets the minimum vertical rotation.
static CameraSettings getOrthographicSettings(ShowRoom room, com.jme3.system.AppSettings settings)
          Gets the orthographic perspective settings for a show room.
static CameraSettings getSettings(CameraSettings.Type type, ShowRoom room, com.jme3.system.AppSettings settings)
          Gets the settings for a show room and a type of perspective.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

initialLocation

private final com.jme3.math.Vector3f initialLocation

lookAtPoint

private com.jme3.math.Vector3f lookAtPoint

isIsometric

private final boolean isIsometric

minVRotation

private float minVRotation

maxVRotation

private float maxVRotation

minDistance

private float minDistance

maxDistance

private float maxDistance

frustumNear

private float frustumNear

frustumFar

private float frustumFar

fov

private final float fov

aspect

private final float aspect
Constructor Detail

CameraSettings

public CameraSettings(com.jme3.math.Vector3f initialLocation,
                      com.jme3.math.Vector3f lookAtPoint,
                      float minVRotation,
                      float maxVRotation,
                      float minDistance,
                      float maxDistance,
                      float aspect,
                      float fov,
                      float frustumNear,
                      float frustumFar,
                      boolean isIsometric)
Instantiates a new camera settings.

Parameters:
initialLocation - the initial location
lookAtPoint - the look at point
minVRotation - the min v rotation
maxVRotation - the max v rotation
minDistance - the min distance
maxDistance - the max distance
aspect - the aspect
fov - the fov
frustumNear - the frustum near
frustumFar - the frustum far
isIsometric - the is isometric
Since:
12.08.2012
Method Detail

configureCamera

public void configureCamera(com.jme3.renderer.Camera cam)
Configures a camera.

Parameters:
cam - the camera
Since:
12.08.2012

getLookAtPoint

public com.jme3.math.Vector3f getLookAtPoint()
Gets the look at point.

Returns:
the look at point
Since:
12.08.2012

getMaxVRotation

public float getMaxVRotation()
Gets the max vertical rotation.

Returns:
the max vertical rotation
Since:
12.08.2012

getMinDistance

public float getMinDistance()
Gets the minimum distance.

Returns:
the minimum distance
Since:
12.08.2012

getMaxDistance

public float getMaxDistance()
Gets the maximum distance.

Returns:
the maximum distance
Since:
12.08.2012

getMinVRotation

public float getMinVRotation()
Gets the minimum vertical rotation.

Returns:
the minimum vertical rotation
Since:
12.08.2012

getSettings

public static CameraSettings getSettings(CameraSettings.Type type,
                                         ShowRoom room,
                                         com.jme3.system.AppSettings settings)
Gets the settings for a show room and a type of perspective.

Parameters:
type - the type of perspective.
room - the show room
settings - the app settings
Returns:
the camera settings
Since:
12.08.2012

getInRoomSettings

public static CameraSettings getInRoomSettings(ShowRoom room,
                                               com.jme3.system.AppSettings settings)
Gets the in room perspective settings for a show room.

Parameters:
room - the show room
settings - the app settings
Returns:
the camera settings
Since:
12.08.2012

getIsometricSettings

public static CameraSettings getIsometricSettings(ShowRoom room,
                                                  com.jme3.system.AppSettings settings)
Gets the isometric perspective settings for a show room.

Parameters:
room - the show room
settings - the app settings
Returns:
the camera settings
Since:
12.08.2012

getOrthographicSettings

public static CameraSettings getOrthographicSettings(ShowRoom room,
                                                     com.jme3.system.AppSettings settings)
Gets the orthographic perspective settings for a show room.

Parameters:
room - the show room
settings - the app settings
Returns:
the camera settings
Since:
12.08.2012